<?php 
require_once 'include/comm.inc.php';
			$id=$_POST['id'];
			
			
			

			$client_info_sql="SELECT * FROM client_user WHERE `client_user_id`='".$id."'";
			$client_info_return=$db->query($client_info_sql);
			$client_info_return=$db->fetch_array($client_info_return);
			
			if ($client_info_return['client_user_status']==1){
				$sql = "update client_user set `client_user_status` = 0 where client_user_id='".$id."'";
				$db->query($sql);
			}else {
				$sql = "update client_user set `client_user_status` = 1 where client_user_id='".$id."'";
				$db->query($sql);
			}
			
			$client_info_sql="SELECT * FROM client_user WHERE `client_user_id`='".$id."'";
			$client_info_return=$db->query($client_info_sql);
			$client_info_return=$db->fetch_array($client_info_return);


			$arr=array('client_user_status'=>$client_info_return['client_user_status']);
			$json_arr=json_encode($arr);
			echo $json_arr;
?>